import express from 'express'
import tokenMiddleware from "../middleware/token.middleware";
import controller from '../controllers/request.controller'
import validate from '../middleware/validator.middleware';
import RequestSchemas from '../schemas/request.schemas';

const router = express.Router();

router.use(tokenMiddleware)
router.post('/', validate(RequestSchemas.request), controller.request)
router.post('/process', validate(RequestSchemas.update), controller.process)

export default router;
